function getCookie(name) {
    const cookies = document.cookie.split(';');
    for (let cookie of cookies) {
        const [key, value] = cookie.trim().split('=');
        if (key === name) return decodeURIComponent(value);
    }
    return null;
}

$(function () {
    let token = getCookie('laytpWebToken');
    if (!token) {
        window.location.href = "/web/login.html";

    }
});